﻿namespace Sgr
{
    /// <summary>
    /// 定期清理资源接口
    /// </summary>
    public interface ICleanupHandle
    {
        /// <summary>
        /// 执行清理
        /// </summary>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        Task CleanupAsync(CancellationToken cancellationToken = default);
    }
}